//
//  KATLabelBarData.h
//  KATFramework
//
//  Created by Yi Yu on 2018/3/6.
//  Copyright © 2018年 KatApp. All rights reserved.
//  标签栏数据

#import <Foundation/Foundation.h>
#import "KATTextStyle.h"


@interface KATLabelBarData : NSObject

#pragma -mark 属性

#pragma -mark 携带值

///类型
@property(nonatomic,assign) int type;

///编号(与数组的序号相同)
@property(nonatomic,assign) int num;

///int值
@property(nonatomic,assign) long long tag;

///int值2
@property(nonatomic,assign) long long index;

///double值
@property(nonatomic,assign) double value;

///字符串值
@property(nonatomic,copy) NSString *message;

///URL
@property(nonatomic,copy) NSString *url;

///id值
@property(nonatomic,retain) id object;

///状态
@property(nonatomic,assign) int state;


#pragma -mark 显示内容

///显示的文本
@property(nonatomic,copy) NSString *text;

///颜色(下划线颜色，及没有style时的选中颜色)
@property(nonatomic,retain) UIColor *color;

///选中时的样式
@property(nonatomic,retain) KATTextStyle *style;


#pragma -mark 类方法

///获取实例
+ (instancetype)data;

///获取实例并设置文本
+ (instancetype)dataWithText:(NSString *)text;

///获取实例并设置文本和数值
+ (instancetype)dataWithText:(NSString *)text andTag:(long long)tag;

///获取实例并设置文本和消息
+ (instancetype)dataWithText:(NSString *)text andMessage:(NSString *)msg;


#pragma -mark 对象方法

///描述
- (NSString *)description;

///释放内存
- (void)dealloc;

@end
